import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable} from "rxjs/Observable";

@Injectable()
export class MessageOverviewProvider {
    private url = '/message/v1/app/preview';
    private typeUrl='/message/v1/app/typeList';

    constructor(public http: HttpClient) {
    }

    // 获取消息类型列表
    getMsgTypeList():Observable<any>{
        return this.http.get(this.typeUrl)
    }
}
